<template>
	<div class="post">
		<p>{{$store.state.info}}</p>
		<button @click="setInfo">获取+</button>
	</div>
</template>

<script>
	import { mapActions } from 'vuex'
	export default{
		name:"Post",
		methods:{
			// setInfo(){
			// 	this.$store.dispatch('setInfo')
			// }
			...mapActions(['setInfo'])
		}
	}
</script>

<style>
</style>
